package net.suncapper.wcss.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.suncapper.wcss.model.domain.WhitelistSetting;
import net.suncapper.wcss.model.dto.WhitelistSettingDTO;
import net.suncapper.wcss.model.vo.WhitelistSettingVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 学校用户白名单设置 Mapper 接口
 * </p>
 *
 * @author ztr
 * @since 2025-10-30
 */
public interface WhitelistSettingMapper extends BaseMapper<WhitelistSetting> {
    WhitelistSetting selectByLogin(@Param("sn") String sn, @Param("password") String password);

    List<WhitelistSettingVO> selectLists(@Param("page") Page<WhitelistSetting> page, @Param("dto") WhitelistSettingDTO dto);

    List<WhitelistSetting> selectBySave(@Param("wvo") WhitelistSettingVO wvo);
}
